<!--
 * @Description: 
 * @Author: mxy
 * @Date: 2022-11-27 21:32:02
 * @LastEditors: mxy
 * @LastEditTime: 2022-11-27 21:32:02
-->
<!--
 * @Description: 
 * @Author: mxy
 * @Date: 2022-11-27 20:37:20
 * @LastEditors: mxy
 * @LastEditTime: 2022-11-27 21:29:55
-->
<template>
  <div>
    <h2>双向绑定的修饰符</h2>
    <input type="text" v-model.number="val" />
    <input type="text" v-model.lazy="uname" />
    <input type="text" v-model.trim="psw" />
  </div>
</template>

<script>
export default {
  data() {
    return {
      val: "123",
      uname: "mxy",
      psw: "111",
    };
  },
};
</script>

<style>
h2 {
  color: red;
}
</style>
